package sc.common.test.case1;

public class ArrayUtil {
	public static <T> boolean contain(T[] array, T target) {
		if (array == null)
			return false;
		for (T t : array) {
			if (t == null) {
				if (target == null)
					return true;
			} else if (t.equals(target))
				return true;
		}
		return false;
	}
}
